﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLibrary;

namespace ClientDataAccess
{
    public class ClientConstantsDataAccess : IGameConstantsDataAccess
    {
        public DBO.UnitStatistics GetStatisticByName(string name)
        {
            return Client.GetStatistics(name);
        }

        public DBO.Economy.Resources GetResourceByName(string name)
        {
            return Client.GetResource(name);
        }

        public List<DBO.Race> GetRaces()
        {
            return Client.GetRaces().ToList();
        }

        public DBO.Race GetRaceByName(string name)
        {
            throw new NotImplementedException();
        }

        DataServiceReference.SOAPDataServiceClient Client = new DataServiceReference.SOAPDataServiceClient();
    }
}
